import request from "./request"

function loginApi(data: any) {
     return request({
        'url': 'user/login',
        'method': 'post',
        data
    })
}

function loginoutApi() {
    return request({
        'url': 'user/logout',
        'method': 'post',
    })
}

function getUserInfo(){
    return request({
        'url': 'user/info',
        'method': 'get',
    })
}

function registerApi(data: any){
    return request({
        'url':'user/register',
        'method':'post',
        data
    })
}
export{
    loginApi,
    loginoutApi,
    getUserInfo,
    registerApi
}
